<?php

use think\facade\Route;
Route::miss(function() {
    return '非法请求';
});
//不需要验证的路由
Route::group(function () {
    Route::get('merchant_cate', 'Merchant/cate_list'); //商家分类
    Route::get('merchant_list', 'Merchant/merchant_list'); //商家列表
    Route::get('merchant_detail', 'Merchant/merchant_detail'); //商家详情
    Route::post('create_order', 'Order/create_order'); //开局
    Route::get('order_detail', 'Order/order_detail'); //组局详情
    Route::post('join_group', 'Order/join_group'); //加入组局
    Route::get('group_list', 'Order/group_list'); //组局列表

    Route::post('merchant_apply', 'Merchant/apply'); //商家入驻申请
    
})
->allowCrossDomain();// 跨域


//用户
Route::group(function () {
    
})
->allowCrossDomain()
->middleware(\app\api\middleware\TokenMiddleware::class,true);// jwt认证












